package com.baida.retail.tasksystem.mapper.ext;

import com.baida.retail.tasksystem.entity.OrderItem;
import com.baida.retail.tasksystem.mapper.OrderItemMapper;

import java.util.List;

public interface OrderItemMapperExt extends OrderItemMapper {
    int increaseRefundedQuantity(Long recordId, int refundedQuantity);

    int updateOutOfStockQuantity(Long recordId, int outOfStockQuantity);

    int increaseSortedQuantity(Long recordId);

    OrderItem selectByRecordId(Long recordId);

    List<OrderItem> selectByOrderId(Long orderId);
}
